Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(MeshLoadBalancingStrategy): set all priorities equal if localityAware is disabled #11980

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

michaelbeaumont
Copy link
Contributor

@michaelbeaumont michaelbeaumont commented Nov 5, 2024

Motivation

We already set priority: 1 for remote zones in fillRemoteMeshServices so we need to explicitly set priority: 0 if we don't want locality awareness.

Also fix an insufficient condition in an existing case, where we weren't verifying that requests really go to all zones, only that it's OK if they do.

Supporting documentation

Fixes #11968

…tegy case

Also fix existing assertion.

Signed-off-by: Mike Beaumont <[email protected]>
@michaelbeaumont michaelbeaumont requested a review from a team as a code owner November 5, 2024 20:02
@michaelbeaumont michaelbeaumont requested review from bartsmykla and lukidzi and removed request for a team November 5, 2024 20:02
@michaelbeaumont michaelbeaumont merged commit daed4c8 into kumahq:master Nov 6, 2024
14 checks passed
@michaelbeaumont michaelbeaumont deleted the fix/mlbs-mzmsvc branch November 6, 2024 09:12
michaelbeaumont added a commit to michaelbeaumont/kuma that referenced this pull request Nov 6, 2024
Changed in kumahq#11980 to really check
both zones were being used.

Signed-off-by: Mike Beaumont <[email protected]>
michaelbeaumont added a commit to michaelbeaumont/kuma that referenced this pull request Nov 6, 2024
The uni MeshService is autogenerated, without the namespace tag,
since kumahq#11978 and the first condition in "should fallback only to first
zone" was fixed in kumahq#11980.

Signed-off-by: Mike Beaumont <[email protected]>
michaelbeaumont added a commit that referenced this pull request Nov 6, 2024
The uni MeshService is autogenerated, without the namespace tag, since
#11978 and the first condition in "should fallback only to first zone"
was fixed in #11980. This caused the test to start failing on master.

Signed-off-by: Mike Beaumont <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try MeshLoadBalancingStrategy with MeshMultizoneService
2 participants